package com.zz.bsea.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.zz.bsea.model.User;
import com.zz.bsea.service.UserService;

@Controller
public class UserController {
	@Autowired
	UserService userService;
	@RequestMapping("query/{id}")
	@ResponseBody
	public User queryUser(@PathVariable("id") long id ){
		
		return userService.selectByPrimaryKey(id);
	}

}
